import request from '@/utils/request';

export async function getFactoryCalendarByPage (params: any) {
    return request('/api/service/getFactoryCalendarByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addFactoryCalendar (params: any) {
    return request('/api/service/addFactoryCalendar', {
    method: 'POST',
    data: params,
  });
}

export async function updateFactoryCalendar (params: any) {
    return request('/api/service/updateFactoryCalendar', {
    method: 'POST',
    data: params,
  });
}

export async function delFactoryCalendar (params: any) {
    return request('/api/service/delFactoryCalendar', {
    method: 'POST',
    data: params,
  });
}


export async function exportFactoryCalendar(params: any) {
    return request('/api/service/exportFactoryCalendar', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getFactoryCalendarByPage, addFactoryCalendar, updateFactoryCalendar, delFactoryCalendar, exportFactoryCalendar }
